<?php
/**
 * collect.php
 * 收藏功能参数验证类
 * Author: netman
 * DateTime:  2023/9/15 10:28
 */
class Request_Api_V2_Collect extends Request_Api_V2_Base
{
    public function __construct($request_param)
    {
        parent::__construct($request_param);
        //自定义规则
        $this->validation->rule('mid',array('Rule_Member','need_member'));
    }

    public function is_collect()
    {
        $this->rules = [
            ['type_id', ['not_empty','digit']],
            ['id', ['not_empty','digit']],
        ];
        return $this;
    }

    public function modify()
    {
        $this->rules = [
            ['type_id', ['not_empty','digit']],
            ['id', ['not_empty','digit']]
        ];

        return $this;
    }

    public function get_collect_list()
    {
        $this->rules = [
            ['page', ['not_empty','digit']],
            ['pagesize', ['not_empty','digit']]
        ];

        return $this;
    }

    public function del_collect_product()
    {
        $this->rules = [
            ['ids', ['not_empty']]

        ];
        return $this;
    }

}